package com.example.designpatterns.singleton;

/**
 * 枚举形式单例
 */
public enum  EnumSingleton {

    INSTANCE;

    private Singleton singleton = null;

    private EnumSingleton(){
        singleton = Singleton.getInstance();
    }

    public Singleton getInstance(){
        return singleton;
    }
}
